/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package EntityState;

import java.io.Serializable;

/**
 *
 * @author James
 */
public class CustomerTransactionState implements Serializable {
    private long   id;
    private String payPalID;
    private int    quantity;
    private int    totalAmount; // Dollar + Cent * 100
    private long   payDate;
    private CustomerState theCustomer;
    private ItemState itemBought;

    public CustomerTransactionState(long id, String payPalID, int quantity, int totalAmount, long payDate, CustomerState theCustomer, ItemState itemBought) {
        this.id          = id;
        this.payPalID    = payPalID;
        this.quantity    = quantity;
        this.theCustomer = theCustomer;
        this.itemBought  = itemBought;
    }
    
    //Getters and Setters
    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public ItemState getItemBought() {
        return itemBought;
    }

    public void setItemBought(ItemState itemBought) {
        this.itemBought = itemBought;
    }

    public long getPayDate() {
        return payDate;
    }

    public void setPayDate(long payDate) {
        this.payDate = payDate;
    }

    public String getPayPalID() {
        return payPalID;
    }

    public void setPayPalID(String payPalID) {
        this.payPalID = payPalID;
    }

    public int getQuantity() {
        return quantity;
    }

    public void setQuantity(int quantity) {
        this.quantity = quantity;
    }

    public CustomerState getCustomer() {
        return theCustomer;
    }

    public void setCustomer(CustomerState theCustomer) {
        this.theCustomer = theCustomer;
    }

    public int getTotalAmount() {
        return totalAmount;
    }

    public void setTotalAmount(int totalAmount) {
        this.totalAmount = totalAmount;
    }
}
